import http from '../http'

/**
 * 
 * @param {*} param 
 * @returns 类型列表
 */
 export const get = param => {
    return http.get('type', param)
}
/**
 * 
 * @param {*} param 
 * @returns 类型列表
 */
export const add = param => {
    return http.post('type', param)
}

/**
 * 
 * @param {*} param 
 * @returns 类型列表
 */
 export const edit = param => {
    return http.put('type', param)
}

/**
 * 
 * @param {*} param 
 * @returns 类型列表
 */
 export const del = id => {
    return http.delete('type', {id})
}